﻿@model AdventureWorks.Entities.Address

@{
    ViewBag.Title = "Details";
}

<h2>Address Of: @Html.ActionLink(Model.Customers.Single().FullName, "Details", "Customer", new { id = Model.Customers.Single().ID }, null)</h2>

<fieldset>
    <legend>Address</legend>

    <div class="display-label">AddressLine1</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AddressLine1)
    </div>

    <div class="display-label">AddressLine2</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AddressLine2)
    </div>

    <div class="display-label">City</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.City)
    </div>

    <div class="display-label">StateProvince</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StateProvince)
    </div>

    <div class="display-label">CountryRegion</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CountryRegion)
    </div>

    <div class="display-label">PostalCode</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PostalCode)
    </div>

    <div class="display-label">ModifiedDate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ModifiedDate)
    </div>

    <div class="display-label">AddressLines</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AddressLines)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID, CustomerID = ViewBag.CustomerID }) |
	<a href="JavaScript:void(0);" onclick="JavaScript:history.back()">Back</a>
</p>
